<?php

class TintucController extends MyController
{
	
	function actionIndex()
	{
		$this->session["menu_alias"] = "tin-tuc";	
		$this->render("index", $this->data);
	}
	
	function actionChitiet($alias = "")
	{
		//echo $alias;
		
		//$this->session["menu_alias"] = "tin-tuc";	
		$row = article::model()->find(array(
			"condition" => "alias like '".$alias."'"
		));
		
		$this->session["menu_alias"] = "tin-tuc";	
		
		$this->data["row"] = $row;
		
		$this->render("chitiet", $this->data);
	}
	
}